﻿
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="row" id="app">
    <div class="col-xs-12">
        <div class="row">
            <div class="col-xs-12">
                <div class="table">
                    <ul class="nav nav-tabs" id="myTab">
                        <li class="active">
                            <a data-toggle="tab" href="#home">
                                工作计划
                            </a>
                        </li>

                        <li>
                            <a data-toggle="tab" href="#messages">
                                绩效考核
                            </a>
                        </li>


                    </ul>

                    <div class="tab-content">
                        <div id="home" class="tab-pane fade in active">
                            <div class="row" id="gzjhlist">
                                <div class="col-lg-12">
                                    <p>
                                        <button class="btn btn-white btn-info btn-bold" v-on:click="p_ShowGZJH()">
                                            <i class="ace-icon glyphicon glyphicon-plus bigger-120 blue"></i>
                                            新增工作计划
                                        </button>
                                    </p>
                                    <table id="dynamic-table" class="table table-striped table-bordered table-hover">
                                        <thead>
                                            <tr>
                                                <th class="center">
                                                    名称
                                                </th>
                                                <th>创建人</th>
                                                <th></th>
                                            </tr>
                                        </thead>

                                        <tbody>
                                            <tr v-for="tr in gzjhlist">
                                                <td class="center">
                                                    {{tr.mbmc}}
                                                </td>
                                                <td> {{tr.cjrname}}</td>
                                                <td>

                                                    <div class="btn-group">
                                                        <button data-toggle="dropdown" class="btn btn-primary btn-white dropdown-toggle btn-sm">
                                                            操作
                                                            <i class="ace-icon fa fa-angle-down icon-on-right"></i>
                                                        </button>

                                                        <ul class="dropdown-menu">
                                                            <li>
                                                                <a v-on:click="p_GetGZJHInfo(tr.mbid)" href="#">编辑</a>
                                                            </li>

                                                            <li>
                                                                <a href="#" v-on:click="p_DelGZJH(tr.mbid)">删除</a>
                                                            </li>
                                                        </ul>
                                                    </div><!-- /.btn-group -->
                                                </td>

                                            </tr>

                                        </tbody>
                                    </table>
                                </div>
                            </div>



                            <div class="row" style="display: none" id="gzjh">
                                <div class="col-xs-12  widget-container-col">
                                    <!-- #section:custom/widget-box -->
                                    <div class="widget-box">
                                        <div class="widget-header">
                                            <h5 class="widget-title">编辑区</h5>

                                            <!-- #section:custom/widget-box.toolbar -->
                                            <div class="widget-toolbar">
                                                <div class="widget-menu">
                                                    <a href="#" data-action="settings" data-toggle="dropdown">
                                                        <i class="ace-icon fa fa-bars"></i>
                                                    </a>

                                                    <ul class="dropdown-menu dropdown-menu-right dropdown-light-blue dropdown-caret dropdown-closer">
                                                        <li>
                                                            <a data-toggle="tab" href="#dropdown1" v-on:click="p_Cancel()">返回列表</a>
                                                        </li>

                                                    </ul>
                                                </div>


                                            </div>

                                            <!-- /section:custom/widget-box.toolbar -->
                                        </div>

                                        <div class="widget-body">
                                            <div class="widget-main">
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <div class="form-horizontal" role="form">
                                                            <div class="row">
                                                                <div class=" col-xs-5">
                                                                    <div class="input-group">
                                                                        <span class="input-group-addon">
                                                                            工作计划
                                                                        </span>
                                                                        <input type="text" class="form-control search-query" placeholder="工作计划" v-model="gzjhinfo.mbmc" />
                                                                        <span class="input-group-btn">
                                                                            <button type="button" class="btn btn-white btn-warning btn-bold" v-on:click="p_Addgzjhnr()">
                                                                                <span class="ace-icon glyphicon glyphicon-plus icon-on-right bigger-110"></span>
                                                                                新增项目
                                                                            </button>
                                                                        </span>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <table class="table table-striped table-bordered table-hover no-margin-bottom no-border-top">
                                                                    <thead class="thin-border-bottom">
                                                                        <tr>
                                                                            <th>名称</th>
                                                                            <th>分值</th>
                                                                            <th>用户是否可以填写</th>
                                                                            <th>评分方式</th>
                                                                            <th>操作</th>
                                                                        </tr>
                                                                    </thead>

                                                                    <tbody>
                                                                        <template v-for="tr in gzjhinfo.GongZuoJiHuaNeiRongs">
                                                                            <tr>
                                                                                <td>
                                                                                    <input type="text" placeholder="项目名" class="col-xs-10 col-sm-5" v-model="tr.nr" />
                                                                                </td>
                                                                                <td>
                                                                                    <input type="text" placeholder="分值" class="col-xs-10 col-sm-5" v-model="tr.gzjhfz" />
                                                                                </td>
                                                                                <td>
                                                                                    <div class="checkbox">
                                                                                        <label class="block">
                                                                                            <input name="form-field-checkbox" type="checkbox" v-model="tr.isedit" class="ace input-lg" />
                                                                                            <span class="lbl bigger-120"> 是否可编辑</span>
                                                                                        </label>
                                                                                    </div>
                                                                                </td>
                                                                                <td>
                                                                                    <select class="form-control" v-model="tr.gzjhhtml">
                                                                                        <option value="">未选择</option>
                                                                                        <option v-for="option in htmllist" v-bind:value="option.html"> {{ option.text }}</option>
                                                                                    </select>
                                                                                </td>
                                                                                <td>
                                                                                    <p>
                                                                                        <button class="btn btn-white btn-warning btn-bold btn-sm" type="button" v-on:click="p_DelGZJHnr(tr)">
                                                                                            <i class="ace-icon fa fa-trash-o bigger-120 orange"></i>
                                                                                            删除
                                                                                        </button>
                                                                                    </p>
                                                                                </td>
                                                                            </tr>
                                                                            <tr class="detail-row open">
                                                                                <td colspan="5">
                                                                                    <div class="table-detail">
                                                                                        <div class="row">
                                                                                            <div class="col-xs-12">
                                                                                                <p>
                                                                                                    <span class="label label-xlg label-primary arrowed arrowed-right">包含子项</span>
                                                                                                    <button class="btn btn-white btn-success btn-bold" type="button" v-on:click="p_AddGongZuoJiHuaSon(tr)">
                                                                                                        <i class="ace-icon glyphicon glyphicon-plus bigger-120 orange"></i>
                                                                                                        新增子项
                                                                                                    </button>
                                                                                                </p>
                                                                                                <table class="table table-striped table-bordered table-hover no-margin-bottom no-border-top" v-if="tr.GongZuoJiHuaSons.length > 0">
                                                                                                    <thead>
                                                                                                        <tr>
                                                                                                            <th>名称</th>
                                                                                                            <th>分值</th>
                                                                                                            <th>操作</th>
                                                                                                        </tr>
                                                                                                    </thead>
                                                                                                    <tbody>
                                                                                                        <tr v-for="son in tr.GongZuoJiHuaSons">
                                                                                                            <td>
                                                                                                                <input type="text" placeholder="项目名" class="col-xs-10 col-sm-5" v-model="son.gzjhsnr" />
                                                                                                            </td>
                                                                                                            <td>
                                                                                                                <input type="text" placeholder="分值" class="col-xs-10 col-sm-5" v-model="son.gzjhsfz" />
                                                                                                            </td>
                                                                                                            <td>
                                                                                                                <p>
                                                                                                                    <button class="btn btn-white btn-warning btn-bold btn-sm" type="button" v-on:click="p_DelGZJHnrson(son)">
                                                                                                                        <i class="ace-icon fa fa-trash-o bigger-120 orange"></i>
                                                                                                                        删除
                                                                                                                    </button>
                                                                                                                </p>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </tbody>
                                                                                                </table>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
                                                                                </td>
                                                                            </tr>
                                                                        </template>
                                                                  
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                            <div class="clearfix form-actions">
                                                                <div class="col-md-offset-1 col-md-11">
                                                                    <button class="btn btn-white btn-info btn-bold" type="button" v-on:click="p_SaveGZJH()">
                                                                        <i class="ace-icon fa fa-floppy-o bigger-120 blue"></i>
                                                                        保存
                                                                    </button>


                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                            </div>
                                        </div>
                                    </div>

                                    <!-- /section:custom/widget-box -->
                                </div>

                                <!-- /.span -->
                            </div><!-- /.row -->



                        </div>

                        <div id="messages" class="tab-pane fade">
                            <div class="row" id="jxlist">
                                <div class="col-lg-12">
                                    <p>
                                        <button class="btn btn-white btn-info btn-bold" v-on:click="p_ShowJX()">
                                            <i class="ace-icon glyphicon glyphicon-plus bigger-120 blue"></i>
                                            新增绩效模板
                                        </button>
                                    </p>
                                    <table id="dynamic-table" class="table table-striped table-bordered table-hover">
                                        <thead>
                                            <tr>
                                                <th class="center">
                                                    名称
                                                </th>
                                                <th>创建时间</th>
                                                <th>创建人</th>
                                                <th></th>
                                            </tr>
                                        </thead>

                                        <tbody>
                                            <tr v-for="tr in jxlist">
                                                <td class="center">
                                                    {{tr.mbmc}}
                                                </td>

                                                <td>
                                                    <template v-if="tr.jxtype===1">
                                                        职工绩效
                                                    </template>
                                                    <template v-if="tr.jxtype===2">
                                                        班主任
                                                    </template>
                                                    <template v-if="tr.jxtype===3">
                                                        教师
                                                    </template>
                                                </td>
                                                <td> {{tr.cjrname}}</td>
                                                <td>

                                                    <div class="btn-group">
                                                        <button data-toggle="dropdown" class="btn btn-primary btn-white dropdown-toggle btn-sm">
                                                            操作
                                                            <i class="ace-icon fa fa-angle-down icon-on-right"></i>
                                                        </button>

                                                        <ul class="dropdown-menu">
                                                            <li>
                                                                <a href="#">编辑</a>
                                                            </li>

                                                            <li>
                                                                <a href="#" v-on:click="p_DelJX(tr.mbid)">删除</a>
                                                            </li>
                                                        </ul>
                                                    </div><!-- /.btn-group -->
                                                </td>

                                            </tr>

                                        </tbody>
                                    </table>
                                </div>
                            </div>

                            <div class="row" id="jixiao" style="display: none">
                                <div class="col-xs-12  widget-container-col">
                                    <!-- #section:custom/widget-box -->
                                    <div class="widget-box">
                                        <div class="widget-header">
                                            <h5 class="widget-title">编辑区</h5>

                                            <!-- #section:custom/widget-box.toolbar -->
                                            <div class="widget-toolbar">
                                                <div class="widget-menu">
                                                    <a href="#" data-action="settings" data-toggle="dropdown">
                                                        <i class="ace-icon fa fa-bars"></i>
                                                    </a>

                                                    <ul class="dropdown-menu dropdown-menu-right dropdown-light-blue dropdown-caret dropdown-closer">
                                                        <li>
                                                            <a data-toggle="tab" href="#dropdown1" v-on:click="p_CancelJX()">返回列表</a>
                                                        </li>

                                                    </ul>
                                                </div>


                                            </div>

                                            <!-- /section:custom/widget-box.toolbar -->
                                        </div>

                                        <div class="widget-body">
                                            <div class="widget-main">
                                                <div class="form-horizontal" role="form">
                                                    <div class="row">
                                                        <div class="col-xs-3">
                                                            <select class="form-control" v-model="jxinfo.jxtype">
                                                                <option value="0">未选择</option>
                                                                <option v-for="option in jixiaotype" v-bind:value="option.id"> {{ option.text }}</option>
                                                            </select>
                                                        </div>
                                                        <div class=" col-xs-5">
                                                            <div class="input-group">
                                                                <span class="input-group-addon">
                                                                    绩效名称
                                                                </span>
                                                                <input type="text" class="form-control search-query" placeholder="绩效名称" v-model="jxinfo.mbmc" />
                                                                <span class="input-group-btn">
                                                                    <button type="button" class="btn btn-white btn-warning btn-bold" v-on:click="p_Addjxnr()">
                                                                        <span class="ace-icon glyphicon glyphicon-plus icon-on-right bigger-110"></span>
                                                                        新增项目
                                                                    </button>
                                                                </span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="form-group">
                                                        <table class="table  table-bordered table-hover">
                                                            <thead class="thin-border-bottom">
                                                                <tr>
                                                                    <th>
                                                                        名称
                                                                    </th>
                                                                    <th>分值</th>
                                                                    <th>评分方式</th>
                                                                    <th>操作</th>
                                                                </tr>
                                                            </thead>

                                                            <tbody>
                                                                <template v-for="tr in jxinfo.JiXiaoNeiRongs">
                                                                    <tr>
                                                                        <td class="center">
                                                                            <input type="text" placeholder="项目名" class="col-xs-10 col-sm-5" v-model="tr.nr" />
                                                                        </td>

                                                                        <td>
                                                                            <input type="text" placeholder="分值" class="col-xs-10 col-sm-5" v-model="tr.jxfz" />
                                                                        </td>
                                                                        <td>
                                                                            <select class="form-control" v-model="tr.jxhtml">
                                                                                <option value="">未选择</option>
                                                                                <option v-for="option in htmllist" v-bind:value="option.html"> {{ option.text }}</option>
                                                                            </select>
                                                                        </td>
                                                                        <td>
                                                                            <p>
                                                                                <button class="btn btn-white btn-warning btn-bold btn-sm" type="button"  v-on:click="p_DelJXnr(tr)">
                                                                                    <i class="ace-icon fa fa-trash-o bigger-120 orange"></i>
                                                                                    删除
                                                                                </button>
                                                                            </p>
                                                                        </td>
                                                                    </tr>
                                                                    <tr class="detail-row open" >
                                                                        <td colspan="4">
                                                                            <div class="table-detail">
                                                                                <div class="row">
                                                                                    <div class="col-xs-12">
                                                                                        <p>
                                                                                            <span class="label label-xlg label-primary arrowed arrowed-right">包含子项</span>
                                                                                            <button class="btn btn-white btn-success btn-bold" type="button" v-on:click="p_AddJiXiaoNeiRongSon(tr)">
                                                                                                <i class="ace-icon glyphicon glyphicon-plus bigger-120 orange"></i>
                                                                                                新增子项
                                                                                            </button>
                                                                                        </p>
                                                                                        <table class="table table-striped table-bordered table-hover no-margin-bottom no-border-top" v-if="tr.JiXiaoSons.length > 0">
                                                                                            <thead>
                                                                                                <tr>
                                                                                                    <th>名称</th>
                                                                                                    <th>分值</th>
                                                                                                    <th>操作</th>
                                                                                                </tr>
                                                                                            </thead>
                                                                                            <tbody>
                                                                                                <tr v-for="son in tr.JiXiaoSons">
                                                                                                    <td>
                                                                                                        <input type="text" placeholder="项目名" class="col-xs-10 col-sm-5" v-model="son.jxsnr" />
                                                                                                    </td>
                                                                                                    <td>
                                                                                                        <input type="text" placeholder="分值" class="col-xs-10 col-sm-5" v-model="son.jxfz" />
                                                                                                    </td>
                                                                                                    <td>
                                                                                                        <p>
                                                                                                            <button class="btn btn-white btn-warning btn-bold btn-sm" type="button" v-on:click="p_DelJXnrson(son)">
                                                                                                                <i class="ace-icon fa fa-trash-o bigger-120 orange"></i>
                                                                                                                删除
                                                                                                            </button>
                                                                                                        </p>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </tbody>
                                                                                        </table>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                </template>

                                                            </tbody>
                                                        </table>
                                                    </div>
                                                    <div class="clearfix form-actions">
                                                        <div class="col-md-offset-1 col-md-11">
                                                            <button class="btn btn-white btn-info btn-bold" type="button" v-on:click="p_SaveJX()">
                                                                <i class="ace-icon fa fa-floppy-o bigger-120 blue"></i>
                                                                保存
                                                            </button>


                                                        </div>
                                                    </div>
                                                </div>

                                            </div>
                                        </div>
                                    </div>

                                    <!-- /section:custom/widget-box -->
                                </div>

                                <!-- /.span -->
                            </div><!-- /.row -->

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="~/Scripts/JsModel/Model_GongZuoJiHua.js"></script>
<script type="text/javascript">
   
   
    //function sonson() {
     //   return { nr: "", gzjhfz: 0}
    //}
    var jixiao = {
        mbid: 0,
        mbmc: "",
        mbtype: 1,
        cjsj: "",
        jxtype:0,
        JiXiaoNeiRongs: []
    }
    function sonjixiao() {
        return {
            nrid: 0,
            jxsx: 1,
            nr: "",
            jxfz: 0,
            jxhtml: "",
            JiXiaoSons: [{ nr: "", gzjhfz: 0}]
        }
    }
    function sonson() {
        return {jxsid:0,jxssx:1, jxsnr: "", jxfz: 0}
    }
    //decodeURI
    //encodeURI
    var html = [
        {
           id:1, text:"组内多选",html: encodeURI(
                '<div class="checkbox"><label class="block"><input nameattr type="checkbox" class="ace input-lg" valueattr /><span class="lbl bigger-120"></span></label></div>')
        },
        {
            id: 1, text:"组内单选",html: encodeURI(
                '<div class="radio"><label><input nameattr type="radio" class="ace input-lg" valueattr /><span class="lbl bigger-120"> </span></label></div>')
        },
        { id: 1, text: "手工评分", html: encodeURI('<div class="clearfix"><input nameattr class="col-xs-2" type="text" valueattr  /></div>') }
    ];
    var jixiaotype = [{ id: 1, text: "职工绩效" }, { id: 2, text: "班主任考核" }, { id: 3, text: "教师考核" }];
    var vm = new Vue({
        el: "#app",
        data: {
            gzjhinfo: new GongZuoJiHua(),
            htmllist: html,
            jxinfo: jixiao,
            jixiaotype: jixiaotype,
            gzjhlist: [],
            jxlist: []
        },
        mounted() {
            this.p_GetGZJHs();
            this.p_GetJXs();
        },
        methods: {
            p_ShowGZJH: function () {
                var _self = this;
                _self.gzjhinfo = new GongZuoJiHua();
                $("#gzjhlist").hide(function() {
                    $("#gzjh").show();
                });
            },
            p_ShowJX: function() {
                $("#jxlist").hide(function() {
                    $("#jixiao").show();
                });
            },
            p_SaveGZJH: function() {
                var _self = this;
                axios.post('@Url.Action("SaveGongZuoJiHua", "MoBanConfig")', _self.gzjhinfo).then(
                        function(response) {
                            bootbox.alert("成功",
                                function() {
                                    _self.p_GetGZJHs();
                                    $("#gzjh").hide(function() {
                                        $("#gzjhlist").show();
                                    });
                                });
                            //vm.goodsList.splice(response.data.length);
                        },
                        function(response) {
                            //alert(response.status);
                        }
                    )
                    .catch(
                        function(error) {
                            //alert(error);
                        }
                    );
            },
            p_Cancel: function() {
                $("#gzjh").hide(function() {
                    $("#gzjhlist").show();
                });
            },
            p_CancelJX: function() {
                $("#jixiao").hide(function() {
                    $("#jxlist").show();
                });
            },
            p_SaveJX: function() {
                var _self = this;
                axios.post('@Url.Action("SaveJiXiao", "MoBanConfig")', _self.jxinfo).then(
                        function(response) {
                            bootbox.alert("成功", function() {
                                _self.p_GetJXs();
                                $("#jixiao").hide(function() {
                                    $("#jxlist").show();
                                });
                            });
                            //vm.goodsList.splice(response.data.length);
                        },
                        function(response) {
                            //alert(response.status);
                        }
                    )
                    .catch(
                        function(error) {
                            //alert(error);
                        }
                    );
            },
            p_Addgzjhnr: function() {
                var _self = this;
                _self.gzjhinfo.GongZuoJiHuaNeiRongs.push(new songongzuojihua());
            },
            p_Addjxnr: function() {
                var _self = this;
                _self.jxinfo.JiXiaoNeiRongs.push(new sonjixiao());
            },
            p_AddJiXiaoNeiRongSon:function(obj) {
                obj.JiXiaoSons.push(new sonson());
            },
            p_AddGongZuoJiHuaSon: function(obj) {
                obj.GongZuoJiHuaSons.push(new GongZuoJiHuaSon());
            },
            p_DelGZJHnr: function (obj) {
                var _self = this;
                var index = -1;
                for (var i = 0; i < _self.gzjhinfo.GongZuoJiHuaNeiRongs.length; i++) {
                    if (_self.gzjhinfo.GongZuoJiHuaNeiRongs[i].nr == obj.nr) {
                        index = i;
                        break;
                    }
                }
                _self.gzjhinfo.GongZuoJiHuaNeiRongs.splice(index, 1);
            },
            p_DelJXnr: function (obj) {
                var _self = this;
                var index = -1;
                for (var i = 0; i < _self.jxinfo.JiXiaoNeiRongs.length; i++) {
                    if (_self.jxinfo.JiXiaoNeiRongs[i].nr == obj.nr) {
                        index = i;
                        break;
                    }
                }
                _self.jxinfo.JiXiaoNeiRongs.splice(index, 1);
            },
            p_DelJXnrson: function (obj) {
                var _self = this;
                var index = -1;
                for (var i = 0; i < _self.jxinfo.JiXiaoNeiRongs.length; i++) {
                    for (var j = 0; j < _self.jxinfo.JiXiaoNeiRongs[i].JiXiaoSons.length; j++) {
                        if (_self.jxinfo.JiXiaoNeiRongs[i].JiXiaoSons[j].jxsnr == obj.jxsnr) {
                            index = j;
                            break;
                        }
                    }
                    if (index >= 0) {
                        _self.jxinfo.JiXiaoNeiRongs[i].JiXiaoSons.splice(index, 1);
                        break;
                    }
                }
            },
            p_DelGZJHnrson: function (obj) {
                var _self = this;
                var index = -1;
                for (var i = 0; i < _self.gzjhinfo.GongZuoJiHuaNeiRongs.length; i++) {
                    for (var j = 0; j < _self.gzjhinfo.GongZuoJiHuaNeiRongs[i].GongZuoJiHuaSons.length; j++) {
                        if (_self.gzjhinfo.GongZuoJiHuaNeiRongs[i].GongZuoJiHuaSons[j].gzjhsnr == obj.gzjhsnr) {
                            index = j;
                            break;
                        }
                    }
                    if (index >= 0) {
                        _self.jxinfo.GongZuoJiHuaNeiRongs[i].GongZuoJiHuaSons.splice(index, 1);
                        break;
                    }
                }
            },
            p_GetGZJHs: function () {
                var _self = this;
                axios.get("@Url.Action("GetGZJHs", "MoBanConfig")").then((response) => {
                    _self.gzjhlist = [];
                        for (var i = 0; i < response.data.length; i++) {
                            _self.gzjhlist.push(response.data[i]);
                        }
                    },
                    (response) => {

                    }
                ).catch(function(response) {
                    console.log(response);
                });
            },
            p_GetJXs: function() {
                var _self = this;
                axios.get("@Url.Action("GetJXs", "MoBanConfig")").then((response) => {
                        _self.jxlist = [];
                        for (var i = 0; i < response.data.length; i++) {
                            _self.jxlist.push(response.data[i]);
                        }
                    },
                    (response) => {

                    }
                ).catch(function(response) {
                    console.log(response);
                });
            },
            p_DelGZJH: function (mbid) {
                var _self = this;
                axios.get("@Url.Action("DelGZJH", "MoBanConfig")", { params: { mbid: mbid } }).then((response) => {
                    bootbox.alert("成功", function () { _self.p_GetGZJHs()});
                    },
                    (response) => {

                    }
                ).catch(function(response) {
                    console.log(response);
                });
            },
            p_DelJX: function(mbid) {
                var _self = this;
                axios.get("@Url.Action("DelJX", "MoBanConfig")", { params: { mbid: mbid } }).then((response) => {
                    bootbox.alert("成功", function () { _self.p_GetJXs()});
                    },
                    (response) => {

                    }
                ).catch(function(response) {
                    console.log(response);
                });
            },
            p_GetGZJHInfo: function (mbid) {
                var _self = this;
                axios.get("@Url.Action("GetGZJH", "MoBanConfig")", { params: { mbid: mbid}}).then((response) => {
                        _self.gzjhlist = [];
                    _self.gzjhinfo = new GongZuoJiHua(response.data);
                        $("#gzjhlist").hide(function() {
                            $("#gzjh").show();
                        });
                    },
                    (response) => {

                    }
                ).catch(function(response) {
                    console.log(response);
                });
            }
        }
    });
</script>
